home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / web2c.kpathsea-1.8.help < prev    next >
Text File  |  1994-09-21  |  3KB  |  108 lines

  1. ftp.cs.umb.edu:pub/tex/web2c.kpathsea.help, 21sep94.
  2.  
  3. This patch does not work with kpathsea 2.1 (or 2.0).  You need
  4. kpathsea 1.8, from the xdvik 1.8, dvipsk 5.55a, or dviljk 1.1
  5. (the previous versions).
  6.  
  7. If you want to make an updated patch, go for it.
  8. -kb@cs.umb.edu
  9. From: Frank Jensen <fj@iesd.auc.dk>
  10. Date: Tue, 5 Apr 1994 21:28:31 +0200
  11.  
  12. Please direct questions about this patch to the tex-k@cs.umb.edu mailing
  13. list or to Frank directly. (In other words, not to kb@cs.umb.edu.) Thanks.
  14.  
  15. Here are the instructions for upgrading web2c-6.1 to work with
  16. kpathsea-1.8.
  17.  
  18. 1. Unpack `web2c-6.1.tar.gz' and `web-6.1.tar.gz', remove the
  19.    directory `web2c-6.1/kpathsea' and replace it with the `kpathsea'
  20.    directory from, e.g., `xdvik-1.8.tar.gz'.  Be sure to preserve your
  21.    `paths.h.in' file if you modified it.
  22.  
  23. 2. Patch the file `web2c-6.1/web2c/lib/ourpaths.c'.  The patch is
  24.    appended below.
  25.  
  26. 3. To prevent invocation of `autoconf' during the installation, say
  27.    `touch web2c-6.1/web2c/configure'.
  28.  
  29. 4. Follow the normal procedure for installation of web2c-6.1.
  30.  
  31. *** web2c-6.1/web2c/lib/ourpaths.c    Tue Apr  5 21:07:07 1994
  32. --- ourpaths.c    Tue Apr  5 21:07:14 1994
  33. ***************
  34. *** 2,8 ****
  35.   
  36.   #include "config.h"
  37.   
  38. ! #include <kpathsea/filefmt.h>
  39.   #include <kpathsea/fontmap.h>
  40.   #include <kpathsea/pathsearch.h>
  41.   
  42. --- 2,8 ----
  43.   
  44.   #include "config.h"
  45.   
  46. ! #include <kpathsea/tex-file.h>
  47.   #include <kpathsea/fontmap.h>
  48.   #include <kpathsea/pathsearch.h>
  49.   
  50. ***************
  51. *** 78,84 ****
  52.     /* Look for it.  Don't use the kpse_find_glyph stuff, since we don't
  53.        have the dpi available separately, and anyway we don't care about
  54.        having pktogf run MakeTeXPK, etc.  */
  55. !   found = kpse_path_search (path, name);
  56.   
  57.     /* If we didn't find it, and we're looking for a font, maybe it's
  58.        an alias defined in a mapping file.  This duplicates most of
  59. --- 78,84 ----
  60.     /* Look for it.  Don't use the kpse_find_glyph stuff, since we don't
  61.        have the dpi available separately, and anyway we don't care about
  62.        having pktogf run MakeTeXPK, etc.  */
  63. !   found = kpse_path_search (path, name, true);
  64.   
  65.     /* If we didn't find it, and we're looking for a font, maybe it's
  66.        an alias defined in a mapping file.  This duplicates most of
  67. ***************
  68. *** 88,97 ****
  69.                    || path_index == PKFILEPATH))
  70.       {
  71.         string *mapped_names;
  72. !       static map_type fontmap = NULL;
  73.         
  74.         /* Fault in the mapping if necessary.  */
  75. !       if (!fontmap)
  76.           fontmap = map_create (path);
  77.         
  78.         /* Now look for our filename in the mapping.  */
  79. --- 88,97 ----
  80.                    || path_index == PKFILEPATH))
  81.       {
  82.         string *mapped_names;
  83. !       static hash_table_type fontmap = { NULL, 0 };
  84.         
  85.         /* Fault in the mapping if necessary.  */
  86. !       if (fontmap.size == 0)
  87.           fontmap = map_create (path);
  88.         
  89.         /* Now look for our filename in the mapping.  */
  90. ***************
  91. *** 101,107 ****
  92.             string mapped_name;
  93.             while ((mapped_name = *mapped_names++) && !found)
  94.               {
  95. !               found = kpse_path_search (path, mapped_name);
  96.               }
  97.           }
  98.       }
  99. --- 101,107 ----
  100.             string mapped_name;
  101.             while ((mapped_name = *mapped_names++) && !found)
  102.               {
  103. !               found = kpse_path_search (path, mapped_name, true);
  104.               }
  105.           }
  106.       }
  107.  
  108.